from DrissionPage import SessionPage

# 创建页面对象
page = SessionPage()

for i in range(1, 5):
	page.get(f'https://gitee.com/explore/all?page={i}')

	items = page.eles('.title project-namespace-path')
	for item in items:
		print(item.text, item.attr("href"))




